//
//  JNSessionManager.h
//  JNNetEestNews
//
//  Created by Jyougen on 2017/3/10.
//  Copyright © 2017年 Jyougen. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef enum : NSUInteger {
    RequestTypeGet,
    RequestTypePost,
} RequestType;

@interface JNSessionManager : AFHTTPSessionManager

+ (instancetype)sharedManager;

- (void)reqestWithRequestType:(RequestType)requestType andURLStr:(NSString *)URLStr andSuccessBlock:(void(^)(id response))successBlock andFailureBlock:(void(^)(NSError * error))failureBlock;

@end
